#include"Binary.h"


int main()
{


	char a[100] = "ABD##E#H##CF##G##";
	int i = 0;
	BTNode*root=BinaryTreeCreate(a, &i);

	BinaryTreePrevOrder(root);
	printf("\n");

	int leafsize=BinaryTreeLeafSize(root);
	printf("%d \n", leafsize);

	int levelksize = BinaryTreeLevelKSize(root, 4);
	printf("%d \n", levelksize);

	BTNode*node=BinaryTreeFind(root, 'B');
	BinaryTreePrevOrder(node);

	BinaryTreeLevelOrder(root);

	printf("Is BinaryTreeComplete:%d\n", BinaryTreeComplete(root));

	BinaryTreeDestory(root);
	return 0;
}